package com.hse.virtualnetwork;

import com.hse.network.ICoordinator;
import com.hse.network.exceptions.NetworkException;
import org.junit.Test;

/**
 * Created by IntelliJ IDEA.
 * User: Lexa
 * Date: May 31, 2009
 * Time: 6:52:46 PM
 * To change this template use File | Settings | File Templates.
 */
public class VirtualCoordinatorTester {
    final static Short PORT_NUMBER = 8788;

    @Test(timeout = 3000)
    public void createDestroyNetwork() throws NetworkException, InstantiationException {
        ICoordinator coordinator = new VirtualCoordinator();
        coordinator.createNetwork(PORT_NUMBER);
        coordinator.destroyNetwork();
        coordinator.close();
    }
}
